package com.rms.service.impl;

import com.rms.entity.Admin;
import com.rms.mapper.AdminMapper;
import com.rms.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 胡满意
 * @date 2019/10/24
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String adminName){
        return adminMapper.login(adminName);
    }
    @Override
    public Admin selectAdmin(int adminId){
        return adminMapper.selectAdmin(adminId);
    }
}
